package com.oig.auth.api.fallback;

import com.oig.auth.api.UserService;
import com.oig.common.module.SysRequest;
import com.oig.sys.auth.dto.UserDto;
import com.oig.sys.auth.vo.UserVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;


@Slf4j
public class UserServiceFallbackImpl implements UserService {

    @Setter
    private Throwable cause;

    @Override
    public UserVo loadUserByUsername(String username) {
        log.error("feign loadUserByUsername error ", cause);
        return null;
    }

    @Override
    public void updateLoginSuccess(UserDto userDto) {
        log.error("feign updateLoginSuccess error ", cause);
    }

    @Override
    public void updateLoginFail(UserDto userDto) {
        log.error("feign updateLoginFail error ", cause);
    }

    @Override
    public UserVo getUserById(Integer userId) {
        log.error("feign getUserById error ", cause);
        return null;
    }

    @Override
    public UserVo getUserByCode(String code) {
        log.error("feign getUserByCode error ", cause);
        return null;
    }

    @Override
    public UserVo getUserByOldId(String oldId) {
        log.error("feign getUserByOldId error ", cause);
        return null;
    }

    @Override
    public UserVo info(Integer userId) {
        log.error("feign get user info error ", cause);
        return null;
    }

    @Override
    public List<UserVo> listAllUser(SysRequest<UserDto> userRequest) {
        log.error("feign listAllUser error ", cause);
        return null;
    }

    @Override
    public List<UserVo> listAllTenUser(Integer tenantId) {
        log.error("feign listAllOrgzUser error ", cause);
        return null;
    }

    @Override
    public List<UserVo> listAllDeptUser(Integer deptId) {
        log.error("feign listAllDeptUser error ", cause);
        return null;
    }

    @Override
    public List<UserVo> loadUsersByUserIds(List<Integer> userIdList) {
        log.error("feign loadUsersByUserIds error ", cause);
        return null;
    }


    @Override
    public List<UserVo> loadUsersByUserCodes(List<String> userCodeList) {
        log.error("feign loadUsersByUserCodes error ", cause);
        return null;
    }

}
